﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SqlMergeReplication.Services
{
    public class MockConfigurationService : IConfigurationService
    {
        #region IConfigurationService Members

        public string GetValue(string key)
        {
            switch (key)
            {
                case CommonConfigurationKeys.DB_CONN_STRING:
                    {
                        return @"\Temp\MyDB.sdf";
                    }
                case ReplicationConfigurationKeys.REPL_DB:
                    {
                        return @"$(CatalogName)";
                    }
                case ReplicationConfigurationKeys.REPL_PUB:
                    {
                        return @"$(PublisherName)";
                    }
                case ReplicationConfigurationKeys.REPL_PUBLICATIONS:
                    {
                        return @"$(PublicationName)";
                    }
                case ReplicationConfigurationKeys.REPL_PWD:
                    {
                        return @"$(ReplicationPassword)";
                    }
                case ReplicationConfigurationKeys.REPL_URL:
                    {
                        return @"http://$(HostName)/$(PublicationName)/sqlcesa35.dll";
                    }
                case ReplicationConfigurationKeys.REPL_USER:
                    {
                        return "$(UserName)";
                    }                
            }
            return string.Empty;
        }

        #endregion
    }
}
